Skip to content

docs(design): sync WIT overview with upstream WIT.md - #389

Merged
vados-cosmonic merged 3 commits into
mainfrom
docs/wit-md-sync-171
Dec 3, 2026
Merged

vados-cosmonic merged 3 commits into
mainfrom
docs/wit-md-sync-171

Conversation

@vados-cosmonic

@vados-cosmonic vados-cosmonic commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #171.

Brings component-model/src/design/wit.md up to date with the current upstream WIT.md.
I compared the two documents and added the features upstream has that the book was missing.

Added

  • Nested package definitions: package a:b { ... } blocks inside a file.
  • Feature gates: @since, @unstable, and @deprecated, with the stabilization/deprecation lifecycle and the rule that gated packages must be versioned.
  • use: renaming with as, cross-package and versioned use, and top-level use.
  • include ... with { a as b }: de-duplication of shared interfaces vs. conflicting plain names.
  • Named imports/exports of interfaces (import users: wasi:keyvalue/store;) and @external-id. Both are marked 🏷️ upstream, which lists them as already shipped.
  • map<K, V> (🗺️, shipped), payload-less stream/future, and fallible resource constructors (constructor(...) -> result<r, e>).
  • Unstable language features: a short list of specified syntax that isn't on by default (fixed-length lists, getters/setters, nested namespaces, error-context), linking to the spec's Gated Features list.

Fixed

  • The TOC now covers the existing Streams, Futures, and async sections, plus the new sections.
  • Two broken anchors (#tuple, #record) and a typo.

@vados-cosmonic
vados-cosmonic marked this pull request as ready for review December 2, 2026 14:41
Add WIT features from upstream WIT.md that the book was missing,
and fix the TOC and two broken anchors.

Closes #171
Comment thread component-model/src/design/wit.md Resolved

@mkatychev mkatychev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vados-cosmonic
vados-cosmonic merged commit c27aada into main Dec 3, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update WIT.md

2 participants